.Net: Fix DebuggerDisplay attribute to reference existing property#3326
Merged
rogerbarreto merged 2 commits intomainfrom Jan 21, 2026
Merged
.Net: Fix DebuggerDisplay attribute to reference existing property#3326rogerbarreto merged 2 commits intomainfrom
rogerbarreto merged 2 commits intomainfrom
Conversation
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix debugger visualizer error for AIAgent variable
Fix DebuggerDisplay attribute to reference existing property
Jan 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a debugger visualizer error in the AIAgent class by updating the DebuggerDisplay attribute to reference the existing Name property instead of the removed DisplayName property. The DisplayName property was removed in PR #2758, causing CS0103 compile errors when inspecting AIAgent instances in the debugger.
Changes:
- Updated
DebuggerDisplayattribute from{DisplayName,nq}to{Name,nq}inAIAgent.cs
SergeyMenshykh
approved these changes
Jan 21, 2026
westey-m
approved these changes
Jan 21, 2026
This was referenced Jan 21, 2026
This was referenced Jan 26, 2026
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…icrosoft#3326) * Initial plan * Fix DebuggerDisplay attribute to use Name instead of DisplayName Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
This was referenced Feb 2, 2026
This was referenced Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
The
[DebuggerDisplay]attribute onAIAgentreferencedDisplayName, which was removed in PR #2758. This caused CS0103 compile errors in the debugger visualizer.Description
Updated
[DebuggerDisplay("{DisplayName,nq}")]to[DebuggerDisplay("{Name,nq}")]inAIAgent.cs. TheNameproperty serves the same purpose as a human-readable identifier for debugging.Changed:
Contribution Checklist
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.